import React from 'react';
import MyHidden from './MyHidden';
import FriendList from './FriendList'
import { useSelector, useDispatch } from 'react-redux';
import * as store from './reducers/partsSlice';
const History=(props)=>{
    const dispatch=useDispatch();
    return (
       <MyHidden title="history" on_hidden={()=>{
      dispatch(store.partsSlice.actions.SHOW_HISTORY(false))
    }} hidden={!useSelector((state) => state.show_history)}>
     <FriendList />
    </MyHidden>
    );
}
export default History;
